package com.xywl.escort.view.order.subscribe;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.GetOrderInfoResp;
import com.xywl.escort.bean.SubscribeOrderDetailResp;

public interface SubscribeDetailContract {

    interface Presenter extends BasePresenter {
        void takeView(SubscribeDetailContract.View view);

        void loadDetail(String id);

        void delete(String id);

        void cancel(String id);

        void getOrderInfo(String id);
    }

    interface View extends BaseView<Presenter> {

        void loadDetailSuccess(SubscribeOrderDetailResp.DataBean dataBean);

        void loadDetailFailure();

        void deleteSuccess(BaseResp resp);

        void deleteFailure(String msg);

        void cancelSuccess(BaseResp resp);

        void cancelFailure(String msg);

        void getOrderInfoSuccess(GetOrderInfoResp.DataBean dataBean);

        void getOrderInfoFailure(String msg);
    }
}
